package com.example.api.mall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;


@EnableAsync  //开启异步支持
@SpringBootApplication
@MapperScan("com.example.service.**.mapper")  //扫描系统中的mapper   mybatis-plus  必须加
@ServletComponentScan(basePackages = {"com.example"}) //扫描系统中的过滤器  扩大扫描范围，引入的jar包也扫描
@ComponentScan(basePackages = {"com.example"})  //指定扫描的包，默认扫描当前文件所在目录及子目录的类，扩大一下扫描范围
public class MallApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallApplication.class, args);
    }

}
